﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:commands="clr-namespace:Microsoft.Practices.Prism.Commands;assembly=Microsoft.Practices.Prism" >
    <DataTemplate x:Key="SearchResults">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            
            <!--			
            <Grid.DataContext>
                <Synology_AudioStationApi:SynoTrack Album="One Time For All Time (Japanese Edition)" AlbumArtUrl="http://hamilcar.serveftp.com:5000/audio/webUI/getcover.cgi/ebdart/887822.jpg" Artist="65daysofstatic" Bitrate="265194" Duration="0:4:20" Genre="Post Rock" IsTrack="True" Icon="icon_musicitem.png" Res="/volume1/music/iTunes Media/Music/65daysofstatic/One Time For All Time (Japanese Edition)/01 Drove Through Ghosts To Get Here.mp3" Sample="44100" Support="True" Size="8602540" Title="Drove Through Ghosts To Get Here" Track="1" Year="2005"/>
            </Grid.DataContext>			
            -->

            <Grid Grid.RowSpan="3" >
                <Image Height="100" Stretch="Uniform"  Source="{Binding TrackInfo.AlbumArtUrl}" />
                <StackPanel>
                    <Button Command="{Binding PlayCommand}" Opacity="0.2" Content="Play"/>
                    <Button Command="{Binding AddToPlaylistCommand}" Opacity="0.2" Content="Add To Playlist" />
                </StackPanel>
            </Grid>
            <TextBlock Grid.Column="1" Text="{Binding TrackInfo.Title}" FontSize="29.333" Foreground="#FF11648F" HorizontalAlignment="Stretch" TextAlignment="Right"/>
            <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding TrackInfo.Album}" Foreground="#FF4291BA" FontSize="21.333" TextAlignment="Right" />
            <TextBlock Grid.Row="2" Grid.Column="1" Text="{Binding TrackInfo.Artist}" Foreground="#FF747D81" FontSize="21.333" TextAlignment="Right" />
        </Grid>
    </DataTemplate>
    <!-- Resource dictionary entries should be defined here. -->
</ResourceDictionary>